package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.EmployeeLoginVO;

public interface EmployeeService {

    /**
     * 新增员工
     * @param employeeDTO
     * @return
     */
    Result add(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    Result page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用禁用员工账号
     *
     * @param status
     * @param id
     * @return
     */
    Result startOrClose(Integer status, Long id);

    /**
     * 根据id查询员工
     *
     * @param id
     * @return
     */
    Result<Employee> listById(Long id);

    /**
     * 修改员工信息
     *
     * @param employeeDTO
     * @return
     */
    Result<Object> update(EmployeeDTO employeeDTO);

    /**
     * 登录
     * @param employeeLoginDTO
     * @return
     */
    Result<EmployeeLoginVO> login(EmployeeLoginDTO employeeLoginDTO);
}
